﻿using System;
using System.Windows.Data;

namespace Store.WP7.Framework.Converters
{
    public class ToUpperConverter : IValueConverter
    {

        #region IValueConverter Membres

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null && value is string)
            {
                return value.ToString().ToUpper();
            }

            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
